﻿<%@ Page Theme="BlueSkin" Title="Lms : Staff Training --> Un Delegate Employees " Language="C#" MasterPageFile="~/LmsWebSite/MasterEN.master" AutoEventWireup="true" CodeFile="UnAssignFromEN.aspx.cs" Inherits="UnAssignFromEN" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <asp:UpdatePanel ID="up1" runat="server">
        <ContentTemplate>
            <asp:UpdateProgress ID="uprogress1" runat="server">
                <ProgressTemplate>
                    <div style="position: fixed; width: 30px; height: 30px; top: 0px; right: 0px; border: 1px solid orange;">
                        <img src="images/loading.gif" style="width: 30px; height: 30px;" alt='Loading' title='Loading' />
                    </div>
                </ProgressTemplate>
            </asp:UpdateProgress>
            <table cellspacing="5" cellpadding="5" width="100%">
                <tr>
                    <td align="left" class="heading">
                        <a href='ManagerMainEN.aspx'>Staff Training</a> --> Un Delegate Employees
                    </td>
                </tr>
            </table>
            <br />
            <div class="aligning allWidthWithMargins  direction" style="margin-bottom: 10px;
                margin-left: 30px; margin-right: 30px;">

                Managers :
                <div class="clearing" style="height:10px;"></div>

                <div class="floating direction aligning" style="width: 300px;">
                    <asp:TextBox ID="txtSearch" runat="server" Width="300px"></asp:TextBox>
                </div>
                <div class="floating" style="font-size: 1px; width: 11px; height: 1px;">
                </div>
                <div class="floating direction aligning" style="width: 100px;">
                    <asp:Button ID="btnSearch" runat="server" Text="Search" OnClick="btnSearch_Click"
                        CausesValidation="false" BorderStyle="Solid" BorderColor="Orange" BackColor="DarkOrange"
                        ForeColor="White" />
                </div>
                <div class="clearing" style="height: 10px;">
                </div>
                <div class="aligning allWidthWithMargins  direction">

                     <asp:GridView DataKeyNames="GenID" ID="grdUsers" runat="server" 
                        AutoGenerateColumns="False" AllowPaging="True" 
                          Font-Size="12px" 
                         Width="840px" onrowediting="grdUsers_RowEditing" 
                         onpageindexchanging="grdUsers_PageIndexChanging" 
                         EnableModelValidation="True" >
                
                
                        <HeaderStyle HorizontalAlign="Center"/>
                
                        <RowStyle HorizontalAlign="Center" />

                        <EmptyDataTemplate>
                        <div class="aligning floating direction" style="width:840px;padding-top:10px;padding-bottom:10px;">
                            <asp:Label  runat="server" Text="Label" >No Users Found</asp:Label> 
                                               
                        </div>
                    
                        </EmptyDataTemplate>
                        <Columns>
                          

                          <asp:TemplateField HeaderText="Badge" HeaderStyle-CssClass="gridRowStyle" ItemStyle-CssClass="gridRowStyle">
                            <ItemTemplate>
                              <asp:Label runat="server"><%#Eval("Badge") %></asp:Label>
                            </ItemTemplate>
                          
                              <HeaderStyle CssClass="gridRowStyle" />
                              <ItemStyle CssClass="gridRowStyle" />
                          
                          </asp:TemplateField>
                    
                          
                          
                            
                    
                            <asp:TemplateField HeaderText="English Name">
                            <ItemTemplate>
                                 <asp:Label  runat="server"><%#((DatabaseComponent.Persons)Container.DataItem).getFullName() %></asp:Label>
                            </ItemTemplate>
                          
                          </asp:TemplateField>
                        
                           <asp:TemplateField HeaderText="Arabic Name">
                            <ItemTemplate>
                                 <asp:Label   runat="server"><%#((DatabaseComponent.Persons)Container.DataItem).getFullNameAR() %></asp:Label>
                            </ItemTemplate>
                          
                          </asp:TemplateField>


                          <asp:CommandField HeaderText="Action" EditText="Change" ShowEditButton="true" />
                        
               
                
                
                
                        </Columns>
                
                
                    </asp:GridView>
                </div>


                <div class="clearing" style="height: 20px;">
                </div>
                <div class="aligning allWidthWithMargins  direction">

                Manager Employees :
                <div class="clearing" style="height:10px;"></div>

                     <asp:GridView DataKeyNames="GenID" ID="grdEmployees" runat="server" 
                        AutoGenerateColumns="False" PageSize="3" AllowPaging="True" 
                          Font-Size="12px" 
                         Width="840px" onpageindexchanging="grdEmployees_PageIndexChanging" 
                        EnableModelValidation="True" >
                
                
                        <HeaderStyle HorizontalAlign="Center"/>
                
                        <RowStyle HorizontalAlign="Center" />

                        <EmptyDataTemplate>
                        <div class="aligning floating direction" style="width:840px;padding-top:10px;padding-bottom:10px;">
                            <asp:Label  runat="server" Text="Label" >No Employees Found</asp:Label> 
                                               
                        </div>
                    
                        </EmptyDataTemplate>
                        <Columns>
                          

                          <asp:TemplateField HeaderText="" HeaderStyle-CssClass="gridRowStyle" ItemStyle-CssClass="gridRowStyle">
                            <ItemTemplate>
                              <asp:CheckBox runat="server" ID="chkSelected">
                              </asp:CheckBox>
                            </ItemTemplate>
                              
                              <HeaderStyle CssClass="gridRowStyle" />
                              <ItemStyle CssClass="gridRowStyle" />
                              
                          </asp:TemplateField>



                          <asp:TemplateField HeaderText="Badge" >
                            <ItemTemplate>
                              <asp:Label  runat="server"><%#Eval("Badge") %></asp:Label>
                            </ItemTemplate>
                          
                          </asp:TemplateField>
                    
                          
                          
                            
                    
                            <asp:TemplateField HeaderText="English Name">
                            <ItemTemplate>
                                 <asp:Label   runat="server"><%#((DatabaseComponent.Persons)Container.DataItem).getFullName() %></asp:Label>
                            </ItemTemplate>
                          
                          </asp:TemplateField>
                        
                           <asp:TemplateField HeaderText="Arabic Name">
                            <ItemTemplate>
                                 <asp:Label    runat="server"><%#((DatabaseComponent.Persons)Container.DataItem).getFullNameAR() %></asp:Label>
                            </ItemTemplate>
                          
                          </asp:TemplateField>


                          
                        
               
                
                
                
                        </Columns>
                
                
                    </asp:GridView>
                </div>

                <div class="clearing" style="height: 20px;">
                </div>
                <div class="aligning allWidthWithMargins  direction">
                    <div class="direction aligning unfloating">
                <asp:Button ID="btnDelegateAll" runat="server" Text="Un Delegate All" 
                    BorderStyle="Solid" BorderColor="Orange" BackColor="DarkOrange" 
                    ForeColor="White" onclick="btnDelegateAll_Click" />
            </div>
            <div class="direction aligning unfloating" style="width:10px;height:1px;font-size:1px;"></div>
             <div class="direction aligning unfloating">
                <asp:Button ID="btnDelegateSelected" runat="server" Text="Un Delegate Selected" 
                     BorderStyle="Solid" BorderColor="Orange" BackColor="DarkOrange" 
                     ForeColor="White" onclick="btnDelegateSelected_Click"/>
            </div>

            <div class="direction aligning unfloating" style="width:10px;height:1px;font-size:1px;"></div>
            <div class="aligning direction unfloating" >
                <asp:Button ID="btnBack" runat="server" Text="Back" CausesValidation="false" OnClientClick="history.go(-1);return false;" BorderStyle="Solid" BorderColor="Orange" BackColor="DarkOrange" ForeColor="White"/>
            </div>
            <div class="clearing"></div>




                </div>

                <div class="clearing" style="height:10px;"></div>

                <div class="aligning allWidthWithMargins floating direction">
            <asp:Label ID="lblError" runat="server" Text="" ForeColor="Red" EnableViewState="false" ></asp:Label>
            <div class="clearing"></div>
            <asp:Label ID="lblResult" runat="server" Text="" ForeColor="Green" EnableViewState="false"></asp:Label>
            
            <div class="clearing"></div>
        </div>
        
        <div class="clearing"></div>


            </div>
        </ContentTemplate>
    </asp:UpdatePanel>

</asp:Content>

